/**
 * Created with IntelliJ IDEA.
 *
 * @Author: jack_yang
 * @Date: 2024/4/25
 * @Description: addition and subtraction
 */
public class Circle {
    private Integer readius;
    public Integer getReadius(){
        return readius;
    }

    public void setReadius(Integer readius) throws Exception {
        if(readius>0){
            this.readius = readius;
        }else {
//            System.out.println("输入的半径有误");
            throw new Exception("输入的半径有误");
        }
    }

    public void draw(){
        System.out.println("画圆半径:"+this.readius+"的圆");

    }
}
